package pers.mihao.quickstream.publish.model.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import pers.mihao.quickstream.common.model.Features;
import pers.mihao.quickstream.publish.constants.TaskStatus;

import java.io.Serializable;
import java.util.Date;

/**
 * @author mihao
 * @since 2024/11/23
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PublishDetailTaskDTO implements Serializable {

    private Long id;

    private Date gmtCreate;

    private Date gmtModify;


    /**
     * 父任务ID
     */
    private Long parentTaskId;

    /**
     * 平台code
     */
    private String platformCode;

    /**
     * 账户ID
     */
    private Long accountId;

    /**
     * 子任务状态
     */
    private TaskStatus subTaskStatus;

    /**
     * 任务执行时间
     */
    private Date taskSuccessTime;

    /**
     * 执行次数
     */
    private Integer invokeNum;

    /**
     * 最后执行时间
     */
    private Date lastInvokeTime;

    /**
     * 执行失败原因
     */
    private String publishErrorReason;

    private Integer version;

    private Features features;

}
